﻿/***********************************************************
! @File        : mainwindow.h
 *  @Brief       : feedback窗口
 *  @Details     : 实现截屏并发送邮件
 *  @Author      : soda
 *  @Date        : 2023-11-06 10:02:33
 *  @Version     : v1.0
 *  @Copyright   : Copyright By soda, All Rights Reserved
 ***********************************************************/
#include <QObject>
#pragma once
#include <mainmanager.h>

#define LAUNCH_GROUP                            "Launch"
#define KEY_LAUNCH_LANGUAGE                     "language"

typedef struct ConfigInfo {

}ConfigInfo;

class MainManager;
class StockListModel;
class QTranslator;
class QSettings;
class QQmlApplicationEngine;
class MainWindow : public QObject
{
    Q_OBJECT
public:
    explicit MainWindow(QObject *parent = nullptr);
    ~MainWindow();

    void start();

signals:
    void sigLoginSuccess();
    void sigLogoutSuccess();

private:
    void initLanguage();
    void initFont();
    void initUI();

private:
    MainManager* m_mainManager = nullptr;
    StockListModel* m_stockListModel = nullptr;
    QTranslator* m_translator = nullptr;
    QSettings* m_setting = nullptr;
    QQmlApplicationEngine *m_engine = nullptr;
};

